package code.c10;

import java.io.Serializable;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/11/10 12:14
 * @package code.c10
 * @description 文件说明
 */

public class Car implements Serializable {
    String brand;
    String color;
    int id;



    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getId() {
        return id;
    }

    public Car(String brand, String color, int id) {
        this.brand = brand;
        this.color = color;
        this.id = id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", color='" + color + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
